<?php
spl_autoload_register('autoload');
// 实例化类的时候自动访问
function autoload($className) {
    // Test1\App02   ./Test1/App02.php
    $filename = './' .
        str_replace('\\', '/', $className) .
        '.php';
    include_once $filename;
}
use Test3\Order;
// 模拟从数据库中查询到一条订单
$order = [
    'order_sn' => '202020220200',
    'status' => 3
];
// 处理数据
//$order['status_title'] = Order::$_status[$order['status']];

$order['status_title'] = Order::getStatusTitle($order['status']);

print_r($order);
